package com.auguigu.springlcoud.controller;

import com.auguigu.springlcoud.service.IMessageProvider;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * TODO 类的作用、描述
 *
 * @author fys2000
 * @date 2020/7/22 10:29
 * @since 最早从哪个版本开始的，如v1.0.1
 */
@RestController
@Slf4j
public class SendMessageController {

    @Resource
    private IMessageProvider provider;

    @GetMapping("/send")
    public String sendMessage() {
        return provider.send();
    }


}
